#ifndef EM_h
#define EM_h

#include "Arduino.h"
#include <math.h>
#include <dht.h>

#define lightSensor A0  // Analog input pin that the potentiometer is attached to
#define smokeInPin A1


#define tempHumidityPin A2 // Analog output pin that the LED is attached to
#define lightLED 4
#define Trig 7
#define LED 5
#define Echo 8
#define Alarm 3
#define flameInPin 2


class EM
{
  public:
    EM();
    void initial();
    void automatic_LED();
    void active();
    void automatic_alarm();
    void humidity();
    void light();
    void smoke();
    void flame();
    void soundWave();
    void conditional_judgment(char condition);
    void BT_display_data();
    void Serial_display_data();
    void wireless_control();
    void wire_control();
    
  private:
    int sensorValue;        // value read from the pot
    int smokeValue;
    int flameValue;
    int LEDValue;
    int soundSwitch;
    float soundCM;
    float soundTemp;
    char valueBT;
    char valueSerial;
    dht DHT;
  
};

#endif
